/*****************************************************************************

File:   otkFamilyTableShowExample.java

Date          Build     Author        Version    Comments
12-Oct-12    P-20-14    dshah         $$1       Created
20-mar-15 P-30-05 gshmelev $$2  called GetCurrentSession


****************************************************************************/

package com.ptc.otkjavaexamples;
 
import com.ptc.cipjava.*;
import com.ptc.pfc.pfcSession.*;
import com.ptc.pfc.pfcCommand.*;
import com.ptc.pfc.pfcGlobal.*;
import com.ptc.pfc.pfcModel.*;
import com.ptc.pfc.pfcModelItem.*;
import com.ptc.pfc.pfcFeature.*;
import com.ptc.pfc.pfcSolid.*;
import javax.swing.JOptionPane;
import java.io.*;

import com.ptc.cipjava.*;
import com.ptc.pfc.pfcFamily.*;
import com.ptc.pfc.pfcServer.*;
import com.ptc.pfc.pfcWindow.*;
import com.ptc.wfc.wfcSolid.*;
import com.ptc.wfc.wfcFamily.*;

 
// Family Table Show
class otkFamilyTableShowExample extends DefaultUICommandActionListener
{



    public otkFamilyTableShowExample()
	{
	}
	
	
	
	
	public void OnCommand()
	{
		addFamilyTableShowExample();
	}
	
	public int addFamilyTableShowExample()
	{

		try
		{
			Session session = pfcSession.GetCurrentSession ();
			WSolid wSolid = (WSolid)(session.GetCurrentModel());

			WFamilyMember FamMemb = (WFamilyMember)(wSolid);

			FamMemb.ShowFamilyTable();
		}
		catch (Exception e)
		{
			System.out.println("1: " + e);
		}	
		return 0;
	}
	

};






